<!--
 * @Description: 照片弹窗模板2
 * @Author: huacong
 * @Date: 2020-07-21 10:51:39
 * @LastEditTime: 2020-07-21 11:22:06
 * @LastEditors: huacong
--> 
<template lang="pug">
  el-dialog(
    :title="title"
    :visible="visible"
    width="720px"
    center
    append-to-body
    @close="closeHandle"
  )
    slot
    slot(name="remark")
</template>
<script>
import { AImage } from '@/components'
export default {
  name: 'PicModel',
  components: {
    AImage
  },
  props: {
    // 1、场景-门诊认证
    type: {
      type: Number,
      default: 0
    },
    title: {
      type: String,
      default: '查看图片'
    },
    info: {
      type: Object,
      default:() => {}
    },
    visible: {
      type: Boolean,
      default: false
    }
  },
  model: {
    prop: 'visible',
    event: 'visibleToggle'
  },
  data () {
    return {
      loading: false
    }
  },
  methods: {
    closeHandle () {
      this.$emit('visibleToggle')
    }
  }
}
</script>